package com.cetccloud.ap.proxy.processor.subscribe.model;

import lombok.Data;

import java.io.Serializable;
import java.util.Map;

/**
 * @ClassName SubscribeHttpParam
 * @Description TODO
 * @Author superz
 * @Date 2021/4/21 11:17
 * @Version 1.0
 **/
@Data
public class SubscribeHttpParam implements Serializable {

    private static final long serialVersionUID = 1L;

//    /**
//     * 订阅类型
//     **/
//    private SubscribeTypeEnum subscribeType;

    /**
     * 请求url
     **/
    private String url;

    /**
     * 请求method，支持：GET,POST
     **/
    private String method;

    /**
     * 请求headers
     **/
    private Map<String, String> headers;

    /**
     * POST请求体
     **/
    private Map<String, Object> body;

    /**
     * 增量查询配置
     **/
    private Increment increment;

    @Data
    public static class Increment {

        /**
         * 增量字段
         **/
        private String field;

        /**
         * 增量字段初始值
         **/
        private Long init;
    }
}
